-
Notifications
You must be signed in to change notification settings - Fork 133
Add worker connections field to NginxProxy #3611
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3611 +/- ##
=======================================
Coverage 86.86% 86.87%
=======================================
Files 127 127
Lines 15271 15287 +16
Branches 62 62
=======================================
+ Hits 13265 13280 +15
- Misses 1851 1852 +1
Partials 155 155 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
we need to add validation check for the field |
@salonichf5 I would disagree. This validation that you linked is mainly to ensure secure string values in nginx config to avoid injection. In this case, we are using an integer, and nginx has no limitations on the value (that I'm aware of). So in that case, I think it's fine to let our CRD schema handle validation upfront. |
sounds good, my initial assumption was to do this for all fields. But the above makes sense. |
@salonichf5 Totally fair. It's a conversation we've gone back and forth on in the past. I think we settled on doing the extra validation on fields that could represent security concerns, otherwise let the CRD schema handle it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
6f15aa9
to
00433d1
Compare
00433d1
to
81addf3
Compare
Proposed changes
Problem: Users were unable to configure worker connections
Solution: Add field to nginxproxy that allows users to configure worker connections. Read that field and put it into the main conf.
Testing: Manual testing and unit tests for the new code
Closes #3371
Checklist
Before creating a PR, run through this checklist and mark each as complete.
Release notes
If this PR introduces a change that affects users and needs to be mentioned in the release notes,
please add a brief note that summarizes the change.